import React from 'react'
import './Weather.css'
const Weather = (props) => {

    const env = props.env
    if (!env) return null
    const tem = env.temperature
    const weather = env.weather
    if (!tem && !weather) return null

    return <div className='game-room-header-env'>
        {weather}{tem ? `: ${tem}` : ''}
    </div>

}

export default Weather
